package com.huike.controller;



import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("/Hello")
public class HelloController {


    @RequestMapping("/hi")
    String sayHEllo(Model model, @RequestParam(value = "name",required = false,defaultValue = "fangyan")String name) {

        model.addAttribute("name",name);

        return "hello";
    }



}
